home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Skunkware 5
/
Skunkware 5.iso
/
src
/
Games
/
lptalk-1.3
/
tl.h
< prev
next >
Wrap
Text File
|
1995-05-03
|
1KB
|
43 lines
/************************************************************************/
/* LP-Talk
Version 1.0 [ 9/24/90]
Version 1.1 [ 9/27/90]
Version 1.2 [ 9/28/90]
*/
/* TinyTalk global types and variables. */
/* */
/* Version 1.0 [ 1/24/90] : Initial implementation by ABR. */
/* 1.1 [ 1/24/90] : Longer strings allowed. */
/* 1.2 [ 2/16/90] : Integrated support for System V and */
/* HP-UX, from Andy Norman and Kipp */
/* Hickman. */
/* */
/************************************************************************/
#define TRUE 1
#define FALSE 0
#define MAXSTRLEN 511
#define HUGESTRLEN (2*MAXSTRLEN)
#define SMALLSTR 31
typedef char string[MAXSTRLEN+1];
typedef char hugestr[HUGESTRLEN+1];
typedef char smallstr[SMALLSTR+1];
/* A TinyMUD world/character record. */
typedef struct world_rec {
struct world_rec *next;
smallstr world, character, pass, address, port;
} world_rec;
#if HPUX || SYSV
#define rindex strrchr
#define index strchr
#define bcopy(a,b,c) memcpy((b),(a),(c))
#define bzero(a, b) memset((a), '\0', (b))
#endif /* HPUX || SYSV */